package DB;

import Model.Attendance;
import Model.Session;
import Model.Student;

import java.util.ArrayList;

public interface AttendanceDBIF {

    //Insert attendance
    public int insertAttendance(Attendance attendance);

    //Find attendance
    public Attendance findAttendance (int id);

    //Find attendance by studentId
    public ArrayList<Attendance> findAttendanceByStudentID(int id);

    public Attendance getAttendanceByStudentAndSessionId(Student student, Session session);

    public ArrayList<Attendance> getAllAttendancesBySessionID(Session session);

    //Find all attendances
    public ArrayList<Attendance> getAllAttendances(boolean retrieveAssociation);

    //Update attendance
    public int updateAttendance(Attendance attendance);

    //Delete attendance
    public int deleteAttendance(int id);


}
